<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/css/bookList.css">
</head>
<body>
    <h1>
        <input type="text" value="{{ keyword }}">
        <input type="button" value="搜索">
        书本列表 
        <input type="button" value="新增">
    </h1>
    <table>
        <tr>
            <th>编号</th>
            <th>书名</th>
            <th>作者</th>
            <th>操作</th>
        </tr>
        {% for item in BookDb %}
        <tr>
            <td>{{ item.id }}</td>
            <td>{{ item.bookName }}</td>
            <td>{{ item.author }}</td>
            <td>
                <input type="button" class="update" value="编辑" data-id="{{ item.id }}">
                <input type="button" class="delete" value="删除" data-id="{{ item.id }}">
            </td>
        </tr>
        {% endfor %}
        <tr>
            <td colspan="4"><span class="sub">&lt;</span><input type="text" value="{{ pages }}"><span class="add" data-id="{{ pageAll }}">&gt;</span></td>
        </tr>
    </table>

    <script src="/js/bookList.js"></script>
</body>
</html>